<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>事件绑定-监听</title>
	</head>
	<body>
		<div id="t">one</div>
		
		<script>
			var div=document.getElementById('t');
			// console.log(div);
			//监听
			div.addEventListener("click",function(){ //只获取点击的类
				div.innerHTML="two";//点1变2 更改HTML..
			})
			
		</script>
	</body>
</html>
